<template>
	<view class="page">
		<view class="bodys justify-content-sp">
			<view class="bodys_cont">
				<view class="image_bg" @click="toPath(1)">
					<view class="image">
						<image src="../../static/manage/shangpinfenlei@3x.png" mode="" class="img"></image>
					</view>
					<view class="text">
						商品分类
					</view>
				</view>
			</view>
			<view class="bodys_cont">
				<view class="image_bg" @click="toPath(2)">
					<view class="image">
						<image src="../../static/manage/fenleiliebiao@3x.png" mode="" class="img"></image>
					</view>
					<view class="text">
						商品列表
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			toPath(e) {
				if (e == 1) {
					uni.navigateTo({
						url: '/pages/classify/index'
					})
				} else if (e == 2) {
					uni.navigateTo({
						url: '/pages/commodity/index'
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		.bodys {
			margin: 30rpx;
			padding: 30rpx;

			.bodys_cont {
				background-color: white;
				width: 150px;
				height: 150px;
				border-radius: 30rpx;
				text-align: center;
				display: flex;
				align-items: center;
				justify-content: center;

				.image_bg {
					.image {
						height: 71px;
						width: 71px;

						.img {
							width: 100%;
							height: 100%;
						}
					}

					.text {
						padding: 10rpx 0;
					}
				}
			}
		}
	}
</style>